package net.sxnic.workflow.chart;

public class ChartLine {
	
	public static int SELF_WIDTH=100;
	public static int SELF_HIGHT=25;

	private String cssClass;

	private String cssStyle;
	
	private int x;

	private int y;
	
	private ChartNode preNode;

	public ChartLine() {
		super();
	}
	
	public String crtHtml() {

		StringBuffer sb = new StringBuffer();

		//<a class="pot-main" id="pot-4" href="javascript:void(0);" style="left: 238px; top: 0.5px;"></a>

		sb.append("<a class='pot-main' href='javascript:void(0);' ");
		sb.append(" style='left:"+x+"px;top:"+y+"px;'>");
		sb.append("</a>");

		return sb.toString();
	}

	public String getCssClass() {
		return cssClass;
	}

	public void setCssClass(String cssClass) {
		this.cssClass = cssClass;
	}

	public String getCssStyle() {
		return cssStyle;
	}

	public void setCssStyle(String cssStyle) {
		this.cssStyle = cssStyle;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public ChartNode getPreNode() {
		return preNode;
	}

	public void setPreNode(ChartNode preNode) {
		this.preNode = preNode;
	}

}
